﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Huyen.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <!--#include virtual="include/Head.ascx"-->
    <script type="text/javascript" language="javascript">
        function doDelete(strID) {

            if (confirm('Bạn có thực sự muốn xóa')) {
                var vnpage = getUrlVars()['page_number'];
                if (vnpage)
                    window.location.href = "Huyen.aspx?action=delete&ID=" + strID + "&page_number=" + vnpage;
                else
                    window.location.href = "Huyen.aspx?action=delete&ID=" + strID;
            }
        }

        function getUrlVars() {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for (var i = 0; i < hashes.length; i++) {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        }
    </script>
</head>
<body>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/Top.ascx"-->
        </div>
        <div id="main-content1">
            <div class="clear">
            </div>
            <div class="content-box" style="width: 50%">
                <form id="frmCarrContact" runat="server" autocomplete="off">
                <div class="content-box-header">
                    <h3 style="cursor: s-resize;">
                        Danh sách huyện (thị xã)
                        <asp:DropDownList class="cls" ID="drLoadingProvince" runat="server" Width="150px"
                            AutoPostBack="True" OnSelectedIndexChanged="drLoadingProvince_Selected">
                        </asp:DropDownList>
                    </h3>
                    <div class="clear">
                    </div>
                </div>
                <table class="adminedit">
                    <tr>
                        <td>
                            Tên
                        </td>
                        <td>
                            Tỉnh
                        </td>
                        <td>
                            Kms
                        </td>
                    </tr>
                    <tr>
                        <td width="250px">
                            <asp:TextBox class="cls" ID="txtTen" runat="server" Width="82%" TabIndex="2"></asp:TextBox>
                        </td>
                        <td>
                            <asp:DropDownList class="cls" ID="drTinh" runat="server" Width="150px" TabIndex="3">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:TextBox class="cls" ID="txtKms" runat="server" Width="82%" TabIndex="2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <asp:Label ID="lblerror" CssClass="error" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
                <table class="paramlist admintable" width="100%">
                    <tr>
                        <td>
                            <asp:Button class="button" ID="btnSave" runat="server" TabIndex="2" Text="Save" OnClick="btnSave_Click" />
                        </td>
                    </tr>
                </table>
                <div class="ProcessJob">
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="adminlist">
                        <thead>
                            <tr style="background: #CCC;">
                                <th align="center">
                                    Index
                                </th>
                                <th align="center">
                                    Huyện (thị xã)
                                </th>
                                <th align="center">
                                    Tỉnh
                                </th>
                                <th align="center">
                                    Location
                                </th>
                                <th align="center">
                                    Kms
                                </th>
                                <th align="center">
                                    Action
                                </th>
                            </tr>
                        </thead>
                        <%LoadTinh();%>
                    </table>
                </div>
                <div class="clear">
                </div>
                <div id="footer">
                    <%=strPager%>
                </div>
                </form>
            </div>
        </div>
    </div>
    <%--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>

    <script type="text/javascript">
_uacct = "UA-2623402-1";
urchinTracker();
    </script>--%>
</body>
</html>
